<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php $this->load->view('admin/global/header'); ?>
<?php $this->load->view('admin/global/left'); ?>
<table cellpadding="0" cellspacing="0">
    <tr>
        <td class="title"><?php echo lang('LIST').': '.lang('BAD_JOB'); ?></td>
    </tr>
    <?php if(isset($denied)){ ?>
    <tr>
        <td class="bar">
            <div class="error"><?php echo lang('DENIED'); ?></div>
            <meta http-equiv="refresh" content="5; <?php echo base_url().ADMIN_PATH; ?>" />
        </td>
    </tr>
    <?php }else{ ?>
    <?php echo Modules::run('admin/bar_module/index', $buttons, $searchs); ?>
    <tr>
        <td valign="top">
        <form name="frmView" id="frmView" method="post">
            <table class="view" cellpadding="0" cellspacing="0">
                <tr class="title">
                    <td class="index">#</td>
                    <td width="20">
                        <input type="checkbox" name="checkAll" id="checkAll" value="0" />
                    </td>
                    <?php echo Modules::run('admin/sort_module/index', 'title', lang('TITLE')); ?>
                    <?php echo Modules::run('admin/sort_module/index', 'email', lang('EMAIL_SENDER')); ?>
                    <?php echo Modules::run('admin/sort_module/index', 'job', lang('JOB')); ?>
                    <?php echo Modules::run('admin/sort_module/index', 'idJob', lang('ID_JOB'), 110); ?>
                    <?php echo Modules::run('admin/sort_module/index', 'postDate', lang('SEND_DATE'), 110); ?>
                    <?php echo Modules::run('admin/sort_module/index', 'id', lang('ID'), 50); ?>
                </tr>
                <!--LOOP-->
                <?php $index = 1; ?>
                <?php foreach($rows as $row){ ?>
                <tr class="<?php if($index%2 == 0){echo 'bgColor';} ?>">
                    <td class="index"><?php echo $sTT++; ?></td>
                    <td align="center">
                        <input type="checkbox" name="idRecord[]" id="idRecord<?php echo $index; ?>" class="idRecord" value="<?php echo $row->jodID; ?>" />
                    </td>
                    <td>
                        <?php echo $row->jodTitle; ?>
                        <img src="<?php echo base_url(); ?>templates/admin/images/expand.png" class="vtip" title="<?php echo nl2br(htmlspecialchars($row->jodDetail)); ?>" align="absmiddle" />
                    </td>
                    <td>
                        <a href="mailto:<?php echo $row->jodEmail; ?>" title="<?php echo $row->jodEmail; ?>">
                            <?php echo $row->jodEmail; ?>
                        </a>
                    </td>
                    <td>
                        <a href="<?php echo base_url(); ?>job/section/<?php echo $row->jobSection; ?>/category/<?php echo $row->jobCategory; ?>/detail/<?php echo $row->jobID; ?>/<?php echo url($row->jobTitle); ?>" title="<?php echo lang('VIEW'); ?>" target="_blank">
                            <?php echo sub($row->jobTitle, 50); ?>
                        </a>
                    </td>
                    <td align="center"><?php echo $row->jobID; ?></td>
                    <td align="center"><b><?php echo date_convert($row->jodPostDate); ?></b></td>
                    <td align="center"><?php echo $row->jodID; ?></td>
                </tr>
                <?php $index++; ?>
                <?php } ?>
                <!--LOOP-->
                <?php echo Modules::run('admin/pagination_module/index', $total, 8); ?>
            </table>
            <input type="hidden" name="action" value="" />
            <input type="hidden" name="value" value="" />
        </form>
        </td>
    </tr>
    <?php } ?>
</table>
<?php $this->load->view('admin/global/right'); ?>
<?php $this->load->view('admin/global/footer'); ?>